let cllydzbOpt = {
  tooltip: {
    trigger: 'item'
  },
  legend: {
    top: '15%',
    right: 'right',
    itemWidth: 12,
    itemHeight: 12,
    itemGap: 20
  },
  series: [
    {
      name: '车辆来源地占比',
      type: 'pie',
      center:['35%', '50%'],
      radius: ['40%', '60%'],
      avoidLabelOverlap: false,
      padAngle: 5,
      itemStyle: {
      	borderWidth: 8,
        borderRadius: 10
      },
      label: {
        show: false,
        position: 'center'
      },
      emphasis: {
        label: {
          show: true,
          fontSize: 40,
          fontWeight: 'bold'
        }
      },
      labelLine: {
        show: false
      },
      data: []
    }
  ]
};

cllydzbOpt.series[0].data = [
        { value: 1048, name: '广东'},
        { value: 735, name: '广西' },
        { value: 580, name: '湖南' },
        { value: 484, name: '湖北' },
        { value: 300, name: '河南' },
        { value: 300, name: '河北' },
        { value: 300, name: '山西' },
        { value: 300, name: '山东' },
        { value: 300, name: '北京' },
    ]
const cllydzbTotalValue = cllydzbOpt.series[0].data.reduce((sum,item)=>sum+item.value,0)
cllydzbOpt.legend.formatter = function(params){
	const cValue = cllydzbOpt.series[0].data.filter(a=>a.name===params);
	return params + '   ' + cValue[0].value + '   ' + parseInt(cValue[0].value*100/cllydzbTotalValue) + '%'
}

echarts.init(document.getElementById('cllydzb')).setOption(cllydzbOpt, true);